<template>
  <div class="caseConclusion">
    <a-descriptions bordered :column="1">
      <a-descriptions-item label="结案时间">
        {{ forData.closureDate }}
      </a-descriptions-item>
      <a-descriptions-item label="结案类型">
        {{ this.$filterDictTextByCache('closing_type', forData.caseType) }}
      </a-descriptions-item>
      <a-descriptions-item label="证明材料">
        <a :href="forData.prove"></a>
      </a-descriptions-item>
      <a-descriptions-item label="社工总结及反思">
        {{ forData.closureDate }}
      </a-descriptions-item>
    </a-descriptions>
  </div>
</template>

<script>
import {indivCaseClosureInfo} from "@api/sjsk/archives";

export default {
  name: "caseConclusion",
  data(){
    return {
      forList:[
        {name:'结案时间',key:'closureDate',val:'2022.07.14'},
        {name:'结案类型',key:'caseType',val:'2022.07.14'},
        {name:'证明材料',key:'prove',val:'2022.07.14'},
        {name:'社工总结及反思',key:'reflect',val:'2022.07.14'},
      ],
      forData:{}
    }
  },
  methods:{
    refreshTable(){
      console.log('结案')
    },
    refreshTable1(){
      let queryObj = {
        personId: "3",
        sources: "1"
      }
      // console.log('结案评估')
      indivCaseClosureInfo(queryObj).then(ser => {
        if(ser.success){
          console.log(ser)
          this.forData = ser.result
        }
      }).catch(err => {})
    }
  }
}
</script>

<style scoped>
/**
结案
 */
/deep/.ant-descriptions-row > th{
  width: 300px !important;
}
</style>